package com.heima.article.fegin;

import com.heima.article.service.ApUserRealnameService;

import com.heima.model.admin.vo.ApArticleVo;
import com.heima.model.common.dtos.ResponseResult;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@Slf4j
@RestController
@RequestMapping // 定义接口路径前缀
public class AuthController {

    @Autowired
    private ApUserRealnameService apUserRealnameService;

    //文章人工审核 成功 新增文章已发布
    @PostMapping("/api/v1/news/auth_pass")
    ResponseResult authPass(@RequestBody ApArticleVo apArticle) {
        return apUserRealnameService.authPass(apArticle);
    }

}
